package com.wyy.web;

import com.wyy.pojo.Comments;
import com.wyy.pojo.model.CommentQuery;
import com.wyy.response.CommonReturnType;
import org.springframework.stereotype.Component;

/**
 * @program: gytcb
 * @author: 吴磊
 * @create: 2021-06-28 15:32
 */
@Component
public class CommentFeignActionFallBack implements CommentFeignAction {
    /**
     * 用户进行评论
     *
     * @param comments
     * @return
     */
    @Override
    public CommonReturnType tokenInsertComment(Comments comments) {
        return CommonReturnType.create("服务降级");
    }

    /**
     * 用户删除评论
     *
     * @param comments
     * @return
     */
    @Override
    public CommonReturnType tokenDeleteComment(Comments comments) {
        return CommonReturnType.create("服务降级");
    }

    /**
     * 获取评论
     *
     * @param commentQuery
     * @return
     */
    @Override
    public CommonReturnType getCommentByArticleIdOrUserId(CommentQuery commentQuery) {
        return CommonReturnType.create("服务降级");
    }
}
